import request from "@/utils/request";

// 获取所有用户
export function allUser() {
  return request({
    url: "/system/user/listAll",
    method: "get"
  })
}

export function listReviewInfo(query) {
  return request({
    url: "/reviewInfo/new/list",
    method: "get",
    params: query
  })
}

export function addReviewInfo(data) {
  return request({
    url: "/reviewInfo/new",
    method: "post",
    data: data
  })
}

export function detailReviewInfo(id) {
  return request({
    url: `/reviewInfo/new/${id}`,
    method: "get"
  })
}

export function generateNumber() {
  return request({
    url: "/reviewInfo/new/generateNumber",
    method: "get"
  })
}


export function downloadPrint(id) {
  return request({
    url: `/reviewInfo/new/print?reviewInfoNewId=${id}`,
    method: "get",
    responseType: "blob"
  })
}
